package com.kgis.fm.business.management.service;

import java.util.List;

import com.kgis.fm.access.common.service.AuthorizationService;
import com.kgis.fm.business.access.model.Connectivity;
import com.kgis.fm.business.management.model.FeatureConnectivity;
import com.kgis.fm.business.management.model.KeyObject;
/**
 * 提供查询设施连接关系接口
 * @author zhxiaomiao
 *
 */
public interface ConnectivityManagementService extends AuthorizationService{
	/**
	 * 根据fid、fno查询单条CONNECTIVITY_N表中记录
	 * @param fno
	 * @param fid
	 * @return
	 */
	Connectivity findByFnoFid(int fno,long fid);
	/**
	 * 查询与设施两个node有关联的记录
	 * @param fno
	 * @param fid
	 * @return
	 */
	List<Connectivity> findRelatedFeaturesByFnoFid(int fno,long fid);
	
	/**
	 * 根据fno fid获取所有关系记录
	 * @param keyObejcts
	 * @return List<FeatureConnectivity>
	 */
	List<FeatureConnectivity> findFeatureConnectivityList(List<KeyObject>keyObejcts);

}
